package com.ejerciciolibre;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.Window;
import android.widget.TextView;

public class ActivityResult extends Activity {
	TextView wins;
	TextView fails;
	TextView Conclusion;
	@Override
	protected void onCreate(Bundle savedInstanceState) {	
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_result);		
		wins = (TextView) findViewById(R.id.txtWinsPanel);
		fails = (TextView) findViewById(R.id.txtFailsPanel);
		Conclusion = (TextView) findViewById(R.id.txtConclusionFinal);
		String Aciertossss = (getIntent().getStringExtra("Wins"));
		String Fallossss = (getIntent().getStringExtra("Fails"));
		wins.setText(Aciertossss);
		fails.setText(Fallossss);
		int conclusion = Integer.parseInt(Aciertossss);
		
		switch (conclusion){
		case 0:
			Conclusion.setText(this.getResources().getString(R.string.Result0));
			break;
		case 1: 
			Conclusion.setText(this.getResources().getString(R.string.Result1));
			break;
		case 2: 
			Conclusion.setText(this.getResources().getString(R.string.Result2));
			break;
		case 3: 
			Conclusion.setText(this.getResources().getString(R.string.Result3));
			break;
		case 4: 
			Conclusion.setText(this.getResources().getString(R.string.Result4));
			break;
		case 5: 
			Conclusion.setText(this.getResources().getString(R.string.Result5));
			break;
		case 6: 
			Conclusion.setText(this.getResources().getString(R.string.Result6));
			break;
		case 7: 
			Conclusion.setText(this.getResources().getString(R.string.Result7));
			break;
		case 8: 
			Conclusion.setText(this.getResources().getString(R.string.Result8));
			break;
		case 9: 
			Conclusion.setText(this.getResources().getString(R.string.Result9));
			break;
		case 10: 
			Conclusion.setText(this.getResources().getString(R.string.Result10));
			break;
		case 11: 
			Conclusion.setText(this.getResources().getString(R.string.Result11));
			break;
		case 12: 
			Conclusion.setText(this.getResources().getString(R.string.Result12));
			break;		
		}
		
	}

}